﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GPSTrackingWebsiteManager.ClassManager;

namespace GPSTrackingWebsiteManager.Pages
{
    public partial class GPSImei : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        [System.Web.Services.WebMethod]
        public static string wsGetGroupsTrackDataLastLocationByUser()
        {
            try
            {
                SessionManager objSessionManager = new SessionManager();
                objSessionManager = (SessionManager) HttpContext.Current.Session["SessionManager"];
                return new GPSTrackingController.GPSTrackingControllerSoapClient().wsGetGroupsTrackDataLastLocationByUser(objSessionManager.CompanyID, HttpContext.Current.User.Identity.Name, objSessionManager.IsUser, objSessionManager.IsAdmin, objSessionManager.IsMaster);
            }
            catch (Exception e)
            {
                throw e;
            }
        }
    }
}